package com.zp.drug.service;

import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.entity.bo.DrugPresPermissionsConfBo;
import com.zp.drug.entity.vo.DrugPresPermissionsConfVo;

import java.util.Collection;
import java.util.List;

/**
 * 处方权限配置Service接口
 *
 * @author zhang peng
 * @ date 2023-06-19
 */
public interface IDrugPresPermissionsConfService {

    /**
     * 查询处方权限配置
     */
    DrugPresPermissionsConfVo queryById (String id);

    /**
     * 查询处方权限配置列表(分页)
     */
    TableDataInfo<DrugPresPermissionsConfVo> queryPageList (DrugPresPermissionsConfBo bo, PageQuery pageQuery);

    /**
     * 查询处方权限配置列表(不分页)
     */
    List<DrugPresPermissionsConfVo> queryList (DrugPresPermissionsConfBo bo);

    /**
     * 修改处方权限配置
     */
    Boolean insertByBo (DrugPresPermissionsConfBo bo);

    /**
     * 修改处方权限配置
     */
    Boolean updateByBo (DrugPresPermissionsConfBo bo);

    /**
     * 校验并批量删除处方权限配置信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    /**
     * 同步机构人员
     * @param orgId
     * @return
     */
    Boolean syncOrgPerson (String orgId);
}
